package mapred;

import org.apache.hadoop.mapred.InputFormat;

@SuppressWarnings("unchecked")
public class InputConfig {

	private Class<? extends InputFormat> inputFormat;
	
	private String[] inputPaths;
	
	private InputConfig(Class<? extends InputFormat> inputFormat, String[] inputPaths) {
		this.inputFormat = inputFormat;
		this.inputPaths = inputPaths;
	}
	
	public static InputConfig newInstance(Class<? extends InputFormat> inputFormat, String... inputPaths) {
		return new InputConfig(inputFormat, inputPaths);
	}
	
	public Class<? extends InputFormat> getInputFormat() {
		return inputFormat;
	}

	public String[] getInputPaths() {
		return inputPaths;
	}

}
